<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '发票管理';
$this->params['breadcrumbs'][] = $this->title;
?>
    <style>
        body{
            background: #f9f9f9;
        }
        .registerform li{
            padding-bottom:25px;
            zoom: 1;
            overflow: hidden;
        }
        .registerform .label{
            display:block;
            width:73px;
            margin: 0;
            font-size: 14px;
            color: #444444;
            padding-top: 4px;
            padding-right: 5px;
            float: left;
            text-align: right;
        }
        .registerform .inputxt{
            border: 1px solid #d2d2d2;
            width:200px;
            float: left;
        }
        .action{
            margin-top: 10px;
        }
        .Validform_checktip{
            height: 33px;
            line-height: 33px;
            margin-left: 0;
        }
        .yzmsubinput{
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius:5px;
            background-color: #da444d;
        }
        .yzmsub{
            padding-left: 82px;
        }
        .adspae{
            font-size: 14px;
            color: #999999;
            margin-left: 10px;
            vertical-align: middle;
        }
        .rightdiv{
            width: 680px;
        }
        .rwidt{
            width: 660px;
        }
        .sqtabwidt tr th{
            padding: 5px 0;
        }
        .sqtabwidt tr td a{
            color: #5a7ed0;
        }
    </style>
    <div class="rwidt">
        <div class="rigtable">
            <h3 class="grh3tit">发票管理</h3>
            <div class="sqform pl15 pr15">
                <div class="sysearch clearFloat">
                                <span class="syseone ml5">
                                    订单成功时间：<input type="text" class="syseoninp"/> 至 <input type="text" class="syseoninp"/>
                                </span>
                                <span class="syseone">
                                    可开票金额：<input type="text" class="syseoninp2"/> - <input type="text" class="syseoninp2"/>
                                </span>
                    <span><input type="submit" value="搜索" class="sysbmi"/></span>
                </div>
            </div>
			<?php if(isset($data)){ ?>
            <div class="sqtable mt20">
                <table class="sqtabwidt">
                    <tr>
                        <th width="14%">
                            <span class="pl30">发票金额</span>
                        </th>
                        <th width="19%">
                            发生时间
                        </th>
                        <th width="24%">
                            发票抬头
                        </th>
                        <th width="14%">
                            订单实付金额
                        </th>
                        <th width="12%">
                            收取方式
                        </th>
                        <th width="10%">
                            状态
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
					<?php foreach($data as $k=>$val){?>
                    <tr>
                        <td>
                            <span class="pl30">￥<?=$val['money']?></span>
                        </td>
                        <td>
                            <?=date('Y-m-d H:i:s',$val['created_at'])?>
                        </td>
                        <td>
                            <?=$val['title']?>
                        </td>
                        <td>
                            ￥<?=$val['money']?>
                        </td>
                        <td>
                            <?=$val['invotecate']?>
                        </td>
                        <td>
                            <?=$val['status']?>
                        </td>
                        <td>
                            <a href="<?= yii\helpers\Url::to(['finance/invoiceinfo','id'=>$val['id']])?>">详情</a>
                        </td>
                    </tr>
					<?php } ?>
                    <tr>

                        <td  colspan="7">
                            <div class="page">
                                <span>共有100条，每页显示：10条</span>&nbsp;&nbsp;&nbsp;
                                <a href=""><<</a><a href="" class="paactive">1</a><a href="">2</a><a href="">3</a><a href="">4</a><a href="">>></a>&nbsp;&nbsp;
                                <input type="text" class="painput"/>&nbsp;&nbsp;
                                <a href="" class="pagesub">GO</a>
                            </div>
                        </td>


                    </tr>


                </table>
            </div>
			<?php }?>
			<?php if(isset($information)){ ?>
				<div class="sqform pl15 pr15">
					<?=$information?>
				</div>
			<?php } ?>
        </div>
    </div>

